package dch.entity;

public class TreeNode<T> {

	private T type;
	private boolean canExpand;
	private TreeNode<T>[] children;
	
	public TreeNode(T type,boolean canExpand){
		this.type=type;
		this.canExpand=canExpand;
	}
	
	public T getType() {
		return type;
	}
	public void setType(T type) {
		this.type = type;
	}
	public boolean isCanExpand() {
		return canExpand;
	}
	public void setCanExpand(boolean canExpand) {
		this.canExpand = canExpand;
	}
	public TreeNode<T>[] getChildren() {
		return children;
	}
	public void setChildren(TreeNode<T>[] children) {
		this.children = children;
	}
}
